package com.songlanyun.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 联盟商家分类
 *
 * @author WuChao
 * @email songlanyun@gmail.com
 * @date 2022-11-21 14:38:04
 */
@Data
@TableName("yxt_union_business_classify")
public class UnionBusinessClassifyEntity extends RootEntity<Long, UnionBusinessClassifyEntity> implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private Long id;
    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;
    /**
     * 图标
     */
    private String icon;
    /**
     * 排序
     */
    @TableField(value = "`rank`")
    private Integer rank;

    /**
     * 是否显示
     */
    private Boolean isShow;
    /**
     *
     */
    private Long createId;
    /**
     *
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    /**
     *
     */
    private Long updateId;
    /**
     *
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Override
    public Long getIdentity() {
        return id;
    }
}
